import Vue from "vue";
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import App from "./App.vue";
import router from "./router";
import store from "./store";
import axios from 'axios'

Vue.config.productionTip = false;
Vue.use(ElementUI)

Vue.prototype.$http = axios.create({
  baseURL: process.env.NODE_ENV === 'development' ? 'http://localhost:3452/tjConfig' : '/tjConfig'
})

new Vue({
  el: '#app',
  router,
  axios,
  store,
  components: { App },
  template: '<App/>'
})
